% finds minimal and maximal value of synapse's weight in connectome
function [ min, max ] = getMinimalAndMaximalSynapseWeight(connectome)
min = 999999999;
max = 0;

for i=1:length(connectome.synapses)
    synapse = connectome.synapses(i);
    if(min > synapse.weight)
        min = synapse.weight;
    end
    if(max < synapse.weight)
        max = synapse.weight;
    end

end

